package com.hyf.glidev4.activity;

import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.hyf.glidev4.BaseActivity;
import com.hyf.glidev4.R;
import com.hyf.glidev4.adaoter.GlideRecyclerAdapter;

import butterknife.BindView;

public class GlideRecyclerActivity extends BaseActivity {

    @BindView(R.id.rv_glide_recycler)
    RecyclerView mRecyclerView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_glide_recycler);
        setTitle("在recycler-view中使用");
        mRecyclerView.setLayoutManager(new LinearLayoutManager(this));
        mRecyclerView.setAdapter(new GlideRecyclerAdapter(this));
    }

    @Override
    protected boolean setDisplayHomeAsUpEnabled() {
        return true;
    }
}
